import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { workplaceListComponent } from './workplace-list/workplace-list.component';
import { AuthGuardService } from '@core/auth/auth-guard.service';
import {workplaceEditComponent} from './workplace-list/edit/workplace-edit.component';
import {workplacermComponent} from './workplace-list/edit/workplace-rm.component';

const routes: Routes = [
  {
    path: 'workplace',
    children: [
      { path: '', component: workplaceListComponent },
      { path: 'edit/:id', component: workplaceEditComponent },
      { path: 'rm/:id', component: workplacermComponent }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class workplaceRoutingModule { }
